<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,maximum-scale=1.0" />
    <title><#if entity.classifyId??>编辑<#else>新增</#if>店铺信息</title>
    <#include "/view/admin/head.html"/>


    <script type="text/javascript" src="${base}/jstool/bootstrap-validator-0.5.3/js/bootstrapValidator.min.js"></script>
    <script type="text/javascript" src="${base}/jstool/bootstrap-validator-0.5.3/lang/zh_CN.min.js"></script>
    <link rel="stylesheet" type="text/css" href="${base}/jstool/bootstrap-validator-0.5.3/css/bootstrapValidator.min.css" />


    <style type="text/css">
        .list-path {
            height: 50px;
            line-height: 50px;
            background-color: #9acfea;
        }

        .table-class {
            width: 90%;
            text-align: center;
            border: 1px solid #afd9ee;
            margin: 0 auto;
            margin-top: 50px;
        }

        table th {
            width: 20%;
            background-color: #d9edf7;
            text-align: right;
        }

        table td {
            width: 20%;
            text-align: left;
        }


    </style>
    <script type="text/javascript">

        $(function(){
            //初始化








            $('#classifyForm').bootstrapValidator({
                message: 'This value is not valid',
                feedbackIcons: {
                    valid: 'glyphicon glyphicon-ok',
                    invalid: 'glyphicon glyphicon-remove',
                    validating: 'glyphicon glyphicon-refresh'
                },
                fields: {



                    
                name:{
                    message: '输入名称出错',
                    validators:{
                        notEmpty: {
                            message: '名称不能为空'
                        },
                        stringLength:{
                            max: 50,
                            message: '名称不能超过 50个字符'
                        }
                    }
                }

                    ,
                value:{
                    message: '输入值出错',
                    validators:{
                        notEmpty: {
                            message: '值不能为空'
                        },
                        stringLength:{
                            max: 1,
                            message: '值不能超过 1个字符'
                        }
                    }
                }

                    ,
                value2:{
                    message: '输入值2出错',
                    validators:{
                        notEmpty: {
                            message: '值2不能为空'
                        },
                        stringLength:{
                            max: 250,
                            message: '值2不能超过 250个字符'
                        }
                    }
                }

                    ,
                classifyName:{
                    message: '输入分类名出错',
                    validators:{
                        notEmpty: {
                            message: '分类名不能为空'
                        },
                        stringLength:{
                            max: 250,
                            message: '分类名不能超过 250个字符'
                        }
                    }
                }
                }
            });


        });

    </script>
</head>
<body>

<div class="list-path">
		<span style="margin-left: 50px;"> <a
                href="${base}/classify/list.do"><span
                class="glyphicon glyphicon-home"></span> 店铺信息列表</a> / <#if entity.classifyId??>编辑<#else>新增</#if>店铺信息
		</span>
    <div style="float: right; margin-right: 40px;">
        <a class="btn btn-info"
           href="${base}/classify/list.do">返回上一级</a>
    </div>
</div>


<div class="table-class">
    <#include "/view/admin/opermsg.html"/>
    <form id="classifyForm" action="${base}/classify/save.do"
     >
    <table class="table table-bordered">

                        <input type="hidden" style="display: none" name="classifyId" value="${entity.classifyId!}"/>


                <tr>
                <th>名称</th>
                <td>
                    <div class="form-group">
                        <input type="text" class="form-control" id="name" name="name" placeholder="请输入名称" value="${entity.name!}">
                    </div>
                </td>
                

                
                <th>值</th>
                <td>
                    <div class="form-group">
                        <input type="text" class="form-control" id="value" name="value" placeholder="请输入值" value="${entity.value!}">
                    </div>
                </td>
                </tr>

                <tr>
                <th>值2</th>
                <td>
                    <div class="form-group">
                        <input type="text" class="form-control" id="value2" name="value2" placeholder="请输入值2" value="${entity.value2!}">
                    </div>
                </td>
                

                
                <th>分类名</th>
                <td>
                    <div class="form-group">
                        <input type="text" class="form-control" id="classifyName" name="classifyName" placeholder="请输入分类名" value="${entity.classifyName!}">
                    </div>
                </td>
                </tr>


        <tr>
            <td colspan="4" width="100%" style="text-align: center;">
                <input type="submit" class="btn btn-success " value="保存"/>
                <span style="width: 20px;">&nbsp;</span>
                <a class="btn btn-danger " href="javascript:window.history.go(-1)">
                   </span>返回</a>
            </td>
        </tr>

    </table>
</form>




</div>

<script type="text/javascript">

</script>


</body>
</html>
